a = int('00001010000000110000100100001100',2)
print(a)
v1 = 1 or 3
v2 = 1 and 3
v3 = 0 and 2 and 1
v4 = 0 and 2 or 1
v5 = 0 and 2 or 1 or 4
v6 = 0 or False and 1
print(v1, v2, v3, v4, v5, v6)
v = dict.fromkeys(['k1','k2'],[])
v['k1'].append(666)
print(v)
v['k1'] = 777
print(v)


def num():
    return [lambda x:i*x for i in range(4)]


print([m(2) for m in num()])
print("\n".join("\t".join(["%s*%s=%s"%(y, x, x*y) for y in range(1, x+1)]) for x in range(1, 10)))
print([ i % 2 for i in range(10)])
print(i % 2 for i in range(10))
print(1 or 2, 1 and 2, 1 < (2==2), 1 < 2 == 2)
print("1,2,3".split(","))
a =['1', '2', '3']
print([int(i) for i in a])
a = [1,2,3]
b = [(1),(2),(3)]
c = [(1,),(2,),(3,)]
print(a, b, c)
print([i ** 2 for i in range(1, 11)])
l1 = [1, 1, 2, 3]
l1 = list(set(l1))
print(l1)
a = [1,2,3]
print(a.pop())
a.append(3)
print(a)